<div class="pageContent">
	<form
	<?php foreach ($form->attrs() as $attr => $value): $value = h($value); echo "{$attr}=\"{$value}\" "; endforeach; ?>>
		<div class="pageFormContent" layoutH="60">
		<?php foreach ($form->elements() as $element):?>
			<dl <?php echo $element->_ui == 'memo'?'class="nowrap"':''?>>
				<dt>
				<?php echo $element->_label?>
				</dt>
				<dt style="width: 200px">
				<?php echo Q::control($element->_ui, $element->id, $element->attrs());?>
				</dt>
			</dl>
			<?php endforeach;?>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>

<script type="text/javascript">
function set_category(value)
{
	var returndata;
	var ajax_url = '<?php echo url('admin::interface/category',NULL,NULL,array('mode'=>'standard','base_uri'=>'')) ?>&jsoncallback=?';
	$.ajax({
	  url: ajax_url,
	  cache: false,
	  'async': false,
	  data: {modelid: value},
	  success: function(data){
		  returndata = data;
	  }
	}); 
	return eval("("+returndata+")");
}
</script>
